package demo.demo3;

import demo.demo1.Coffee;

public class Client {
    public static void main(String[] args) {
        Coffee coffee = (Coffee)CoffeeFactory.getBean("americanCoffee");
        System.out.println(coffee.getName());

        System.out.println("-------------------");

        Coffee latte=(Coffee) CoffeeFactory.getBean("latteCoffee");
        System.out.println(latte.getName());
    }
}
